import request from '@/utils/request'

// 查询CMC装备列表
export function listTdmCmcZhuangBei(query) {
  return request({
    url: '/admin/TdmCmcZhuangBei/list',
    method: 'get',
    params: query
  })
}

// 查询CMC装备详细
export function getTdmCmcZhuangBei(id) {
  return request({
    url: '/admin/TdmCmcZhuangBei/' + id,
    method: 'get'
  })
}

// 新增CMC装备
export function addTdmCmcZhuangBei(data) {
  return request({
    url: '/admin/TdmCmcZhuangBei',
    method: 'post',
    data: data
  })
}

// 修改CMC装备
export function updateTdmCmcZhuangBei(data) {
  return request({
    url: '/admin/TdmCmcZhuangBei',
    method: 'put',
    data: data
  })
}

// 删除CMC装备
export function delTdmCmcZhuangBei(id) {
  return request({
    url: '/admin/TdmCmcZhuangBei/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
